import http from '@/utils/http'
import qs from 'qs'
import baseUrl from '@/src/api/baseUrl'
const user = {
	// 登录
	login(data) {
		let params = {
			method: 'post',
			url: `${baseUrl}/sys/login`,
			data: JSON.stringify(data)
		}
		return http(params)
	},
	userInfo() {
		let params = {
			method: 'get',
			url: 'api/userInfo',
			params:data
		}
		return http(params)
	}
}
export default user
